package com.lepu.app.widget;

import android.content.ClipboardManager;
import android.content.Context;

/**
 * Created by weichyang on 2015/8/13.
 */
public class ManagerClipborad {

    /**
     * 剪贴版manager
     *
     * @return
     */

    public static ManagerClipborad getInstance() {
        return ManagerClipboradHolder.loginManager;
    }

    static class ManagerClipboradHolder {
        static ManagerClipborad loginManager = new ManagerClipborad();
    }

    private ManagerClipborad() {
    }

    /**
     * 得到剪贴版 服务
     * @param context
     * @return
     */
    public ClipboardManager getClipboardM(Context context) {
        ClipboardManager cmb = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
        return cmb;
    }


}
